﻿using PwjCy.Lite.Persistence.Imp;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace PwjCy.Lite.UnitTest.XmlSerializeTest
{
    public class TestXmlSerialize
    {
        public static string SerializeTest()
        {
            return new XmlSerializeService().SerailizeXml<TestXml>(new TestXml());
        }
        public static TestXml DeserizlizeTest(string xml) 
        {
            return new XmlSerializeService().Deserizlize<TestXml>(xml);
        }
    }
    public class TestXml
    {
        public TestXml()
        {
            CreateTime = DateTime.Now;
            Money = 100;
            IsFinish = true;
            IdentityValue = 123;
            XmlString = "测试数据";
        }
        public DateTime CreateTime { get; set; }
        public decimal Money { get; set; }
        public bool IsFinish { get; set; }

        public int IdentityValue { get; set; }
        public string XmlString { get; set; }
    }
}
